#!/bin/bash

cd /home/gdp/github/TCN/gait_cnn_transformer
# # 获取当前激活的 conda 环境名称
# CURRENT_ENV=$(conda info --envs | grep '\*' | awk '{print $1}')
# TARGET_ENV="env_isaaclab"
# # CURRENT_ENV=$CONDA_DEFAULT_ENV #使用环境变量
# if [ "$CURRENT_ENV" = "$TARGET_ENV" ]; then
#     echo "✅ Already in conda environment: $CURRENT_ENV"


# else
#     echo "🔄 Switching to conda environment: $TARGET_ENV"
#     # 激活目标环境
#     # conda activate $TARGET_ENV
#     conda activate env_isaaclab
# fi

# # 检查激活是否成功
# if [ $? -ne 0 ]; then
#     echo "❌ Failed to activate conda environment: $TARGET_ENV"
#     exit 1
# fi

# 直接指定 env_isaaclab 环境中的 python 路径
# conda activate env_isaaclab
/home/gdp/anaconda3/envs/env_isaaclab/bin/python gait_cnn_transformer.py
